package com.day12;

public class Test2 {
    public static void main(String[] args){
        int i1=5;
        int i2=2;

        double d1=2.4;
        double d2=1.1;

        System.out.println("int i1= "+i1+" int i1= "+i2);
        System.out.println("double d1= "+d1+" double d1= "+d2);

        //取模通常用于整型类型，浮点类型不准确。
        System.out.println("i1%i2="+(i1%i2));
        System.out.println("i1%d1="+(i1%d1));
        System.out.println("d1%d2="+(d1%d2));
        System.out.println("d1%i2="+(d1%i2));
    }
}
